home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- #
- # Laptop mode tools module: Intel AC97 integrated audio power saving mode.
- #
-
- if [ x$CONTROL_AC97_POWER = x1 ] ; then
- if [ -w /sys/module/snd_ac97_codec/parameters/power_save ]; then
- echo 1 > /sys/module/snd_ac97_codec/parameters/power_save
- $LM_VERBOSE && echo "AC97 power save mode enabled." >> $OUTPUT
- else
- $LM_VERBOSE && echo "AC97 power saving is not available. Perhaps CONFIG_SND_AC97_POWER_SAVE option" >> $OUTPUT
- $LM_VERBOSE && echo "is not set in the kernel config, or the snd_ac97_codec module is not loaded." >> $OUTPUT
- fi
- else
- $LM_VERBOSE && echo "AC97 audio power setting is disabled." >> $OUTPUT
- fi
-